<!DOCTYPE html>
<!-- ng-app -->
<html lang="en" ng-app="aa">
<head>
    <meta charset="UTF-8">
    <title>控制器初始化$scope对象</title>
    <script src="../../../js/plugins/angular/angular.min.js" type="text/javascript"></script>
</head>
<body>
    <div ng-controller="cc">
        <span>{{text}}</span>

        <span class="show">{{span_show()}}</span>
    </div>

    <script>
        var aa = angular.module('aa', []);
        aa.controller('cc', ['$scope',function ($scope) {
            $scope.text = 'hello oli~';
        }]);

    </script>
</body>
</html>